package com.zuo.demo01.dao;

import com.zuo.demo01.pojo.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface CommentMapper {

    public List<Comment> findAll(Map<String,Integer> map);

    public List<Comment> findByBlog(Map<String,Object> map);

    public int count();

    public int countByBlog(int blogId);

    public int insert(Map<String,Object> map);

    public int verify(int id);

    public int delete(int id);

    public int reply(Comment comment);

}
